package dancetiktokmodelclickhouse

// DanceComposePropChangeLog 道具流转记录
type DanceComposePropChangeLog struct {
	Id                uint64 `json:"id" gorm:"column:id;comment:id"`
	MongoId           string `json:"mongoId" gorm:"column:mongo_id;type:varchar(500);not null;default:'';comment: mongo _id"`
	UserId            string `json:"userId" gorm:"column:user_id;type:varchar(500);not null;default:'';comment: 用户id"` //用户id
	ConditionsTypeOne int64  `json:"conditionsTypeOne" gorm:"column:conditions_type_one;type:bigint;default:0;comment:中奖一级类型"`
	ConditionsType    int64  `json:"conditionsType" gorm:"column:conditions_type;type:bigint;default:0;comment:中奖二级类型"`
	PropNo            int64  `json:"propNo" gorm:"column:prop_no;type:bigint;default:0;comment:道具编号"`
	PropNumber        int64  `json:"propNumber" gorm:"column:prop_number;type:bigint;default:0;comment:道具数量"`
	ValidityPeriod    int64  `json:"validityPeriod" gorm:"column:validity_period;type:bigint;default:0;comment:服饰有效时长(小时)"`
	Source            int64  `json:"source" gorm:"column:source;type:bigint;default:0;comment:来源"` // 获取来源  1:抽奖直接获得;2:抽奖抽到了服饰，自动兑换成碎片获得;3:商城兑换奖品减少 4.他人赠送获得 5 赠送他人减少 6补发添加 7补发减少 8.兑换星光值减少 9.兑换旅途点减少 10.碎片兑换道具增加 11 //用户,主播使用减少 12 道具分解 13 购买商品减少
	ActivityId        int64  `json:"activityId" gorm:"column:activity_id;type:bigint;default:0;comment:活动id"`
	PetActivityId     int64  `json:"petActivityId" gorm:"column:pet_activity_id;type:bigint;default:0;comment:宠物活动id"`
	PetBossActivityId int64  `json:"petBossActivityId" gorm:"column:pet_boss_activity_id;type:bigint;default:0;comment:宠物boss活动id"`
	ChangeType        int64  `json:"changeType" gorm:"column:change_type;type:bigint;default:0;comment:数据类型 1:增 2:减产"`
	ElementNo         int64  `json:"elementNo" gorm:"column:element_no;type:bigint;default:0;comment:商品编号"` //抽到的服饰，换成道具的原服饰，只有2的时候才会有值,13.购买的商品编号
	ElementNum        int64  `json:"elementNum" gorm:"column:element_num;type:bigint;default:0;comment:商品数量"`
	ElementNoChange   int64  `json:"elementNoChange" gorm:"column:element_no_change;type:bigint;default:0;comment:被兑换的奖品"`
	GiveUserId        string `json:"giveUserId" gorm:"column:give_user_id;type:varchar(500);not null;default:'';comment: 赠送人用户id"`
	ReceiveUserId     string `json:"receiveUserId" gorm:"column:receive_user_id;type:varchar(500);not null;default:'';comment: 被赠送人用户id"`

	ExchangePieceNo     int64 `json:"exchangePieceNo" gorm:"column:exchange_piece_no;type:bigint;default:0;comment:兑换碎片编号"`
	ExchangePieceNumber int64 `json:"exchangePieceNumber" gorm:"column:exchange_piece_number;type:bigint;default:0;comment:兑换碎片数量"`

	CurrentPropNumber      int64  `json:"currentPropNumber" gorm:"column:current_prop_number;type:bigint;default:0;comment: 当前背包道具数量"`
	UpdatedPropNumber      int64  `json:"updatedPropNumber" gorm:"column:updated_prop_number;type:bigint;default:0;comment: 更新后背包道具数量"`
	TripScore              int64  `json:"tripScore" gorm:"column:trip_score;type:bigint;default:0;comment:旅途点"`
	Score                  int64  `json:"score" gorm:"column:score;type:bigint;default:0;comment:星光值数量"`
	StarStoneNo            int64  `json:"starStoneNo" gorm:"column:star_stone_no;type:bigint;default:0;comment:分解成的星钻编号"`
	StarStoneNum           int64  `json:"starStoneNum" gorm:"column:star_stone_num;type:bigint;default:0;comment:分解成的星钻数量"`
	ResolvePropNo          int64  `json:"resolvePropNo" gorm:"column:resolve_prop_no;type:bigint;default:0;comment:道具分解编号"`
	ResolvePropNum         int64  `json:"resolvePropNum" gorm:"column:resolve_prop_num;type:bigint;default:0;comment:道具分解数量"`
	ResolvePropExpiredTime int64  `json:"resolvePropExpiredTime" gorm:"column:resolve_prop_expired_time;type:bigint;default:0;comment:道具分解时长(小时)"`
	SourceElementNo        int64  `json:"sourceElementNo" gorm:"column:source_element_no;type:bigint;default:0;comment:来源散件编号"`
	SourceElementNum       int64  `json:"sourceElementNum" gorm:"column:source_element_num;type:bigint;default:0;comment:来源散件数量"`
	CreatedAt              int64  `json:"createdAt" gorm:"column:created_at;type:bigint;default:0;comment:创建时间"`
	CreatedAtString        string `json:"createdAtString" gorm:"column:created_at_string;type:varchar(500);not null;default:'';comment: 创建时间"`
}
